import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
// i18n
import i18n from '@/assets/i18n/index'
import plugins from './plugins'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 如果只是按需导入，则可以忽略以下内容。
// 如果你想导入所有样式:
import 'element-plus/theme-chalk/src/index.scss'
import '@/assets/icons'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
// 国际化

app.use(plugins)
app.use(createPinia())
app.use(router).use(i18n).mount('#app')
